package org.rasterfun.language2.num

import org.rasterfun.language2.{NumKind, Context}

/**
 * Represents numerical constants.
 * 
 * @author Hans Haggstrom
 */
case class NumConstant(value: Float) extends Num {

  def generateCode(context: Context, s: StringBuilder) {
    s append " "
    s append value
    s append "f "
  }

  protected override def alwaysInline = true

  def toNumber = value

//  override def toString = value.toString
}